/*
 * @Author: Dorange.Wang
 * @Date: 2021-04-01 11:02:10
 * @LastEditors: wangming
 * @LastEditTime: 2021-12-07 15:58:14
 * @Description: file content
 */
export const TOKEN = 'Access-Token'
export const APP_TOKEN = 'App-Token'
export const ACCESS_TOKEN =
  process.env.VUE_APP_USER === 'APP' ? APP_TOKEN : TOKEN
export const DOMAIN_SUFFIX = 'Domain-Suffix'
export const APP_UNIQUE = 'App-Unique'
export const APP_PREVIEW = 'App-Preview'
export const MOS_ENABLED = 'mos-enabled'
// 系统字段
export const SYSTEM_FIELD = [
  'id',
  'create_by',
  'create_date',
  'modify_by',
  'modify_date',
  'deleted'
]
// 树结构模型的系统字段
export const SYSTEM_FIELD_TREE = [
  'parent_id',
  'parent_ids',
  'children',
  'node_name'
]

// 流程业务模型的系统字段
export const SYSTEM_FIELD_PROCESS = [
  'process_id',
  'process_instance_id'
]

// 默认的groovy脚本
export const GROOVY_TEMPLATE = 'def main(){\r\n    \r\n}'

//js 系统保留字段
export const SYSTEM_RETAIN = ['abstract', 'arguments', 'boolean', 'break', 'byte',
  'case', 'catch', 'char', 'class', 'const',
  'continue', 'debugger', 'default', 'delete', 'do',
  'double', 'else', 'enum', 'eval', 'export',
  'extends', 'false', 'final', 'finally', 'float',
  'for', 'function', 'goto', 'if', 'implements',
  'import', 'in', 'instanceof', 'int', 'interface',
  'let', 'long', 'native', 'new', 'null',
  'package', 'private', 'protected', 'public', 'return',
  'short', 'static', 'super', 'switch', 'synchronized',
  'this', 'throw', 'throws', 'transient', 'true',
  'try', 'typeof', 'var', 'void', 'volatile',
  'while', 'with', 'yield']

//表格上允许显示的字段
export const TABLE_RETAIN_CODE = [
  "SHORT_TEXT",
  "LONG_TEXT",
  "NUMBER",
  "DATE",
  "TIME",
  "STAFF",
  "DEPARTMENT",
  "RELATION_SELECT",
  'RELATION_REFERENCE',
  "SEQ",
  "INTEGER",
  "BOOL",
];

// 颜色选择器 预设颜色
export const PREDEFINE_COLORS = [
  '#333',
  '#909399',
  '#f5f7fa',
  '#c71585',
  '#ff4500',
  '#f56c6c',
  '#ff8c00',
  '#ffd700',
  '#e6a23c',
  '#67c23a',
  '#90ee90',
  '#00ced1',
  '#1890ff',
  '#1e90ff',
]